export const STATUS_TYPE_ENUM = {
  UNAUDITED: {
    value: 1,
    desc: '未审核'
  },
  AUDITED: {
    value: 2,
    desc: '已审核'
  },
  OUT: {
    value: 3,
    desc: '已出库'
  }
}

export const ORDER_STATUS_ENUM = {
  NORMAL: {
    value: 1,
    desc: '正常'
  },
  COMPLETE: {
    value: 2,
    desc: '完成'
  },
  CANCEL: {
    value: 3,
    desc: '取消'
  }
}

export const SIGN_STATUS_ENUM = {
  SIGNED: {
    value: 1,
    desc: '待签收'
  },
  SIGNEDFOR: {
    value: 2,
    desc: '已签收'
  }
}

/*
 * 出库
 *
 */

export const ISSELF_ORDER_ENUM: SmartEnum<number> = {
  DELIVERY: {
    value: 1,
    desc: '配送'
  },
  SELF: {
    value: 2,
    desc: '自提'
  }
}

export const PICK_STATUS_ENUM: SmartEnum<number> = {
  PICKED: {
    value: 1,
    desc: '待出库'
  },
  SELECTED: {
    value: 2,
    desc: '出库中'
  },
  DELIVERY: {
    value: 3,
    desc: '已出库'
  },
  SELF: {
    value: 4,
    desc: '驳回'
  }
}

export const ORDER_STA_ENUM = {
  PROGRESS: {
    value: 1,
    desc: '进行中'
  },
  COMPLETED: {
    value: 2,
    desc: '已完成'
  },
  CANCELLED: {
    value: 3,
    desc: '已取消'
  }
}

export const TYPE_STATUS_ENUM = {
  SALE: {
    value: 1,
    desc: '销售'
  },
  WITHDRAWAL: {
    value: 2,
    desc: '采退'
  },
  TRANSFER: {
    value: 3,
    desc: '调拨'
  }
}

export const APPROVAL_STATUS_ENUM = {
  PENDING: {
    value: 1,
    desc: '待通过'
  },
  PASSED: {
    value: 2,
    desc: '已通过'
  },
  CANCELLED: {
    value: 3,
    desc: '已取消'
  },
  COMPLETED: {
    value: 4,
    desc: '已完成'
  }
}

export const STORE_STATUS_ENUM = {
  APPROVAL: {
    value: 1,
    desc: '待签收'
  },
  AUDITED: {
    value: 2,
    desc: '已签收'
  },
  CONFIRM: {
    value: 3,
    desc: '部分签收'
  },
  CANCEL: {
    value: 4,
    desc: '已驳回'
  }
}

/*
 * 数据
 */
export const SEX_STATUS_ENUM = {
  MALE: {
    value: 1,
    desc: '男'
  },
  FEMALE: {
    value: 2,
    desc: '女'
  }
}

export const JOD_STATUS_ENUM = {
  DEON: {
    value: 1,
    desc: '在职'
  },
  RESIGN: {
    value: 2,
    desc: '离职'
  }
}

/*
 * 配送单
 */

export const PENDING_STATUS_ENUM = {
  PENDING: {
    value: 1,
    desc: '待派单'
  },
  ASSIGNED: {
    value: 2,
    desc: '已派单'
  }
}

export const DELIVERY_STATUS_ENUM = {
  DELIVERY: {
    value: 1,
    desc: '未装车'
  },
  PARTIAL: {
    value: 2,
    desc: '已装车'
  }
}
// 收款单
export const PAY_STATUS_ENUM = {
  CASH: {
    value: 1,
    desc: '现金'
  },
  COMPANY: {
    value: 2,
    desc: '公司账户'
  }
}

export const PAY_STA_ENUM = {
  CASH: {
    value: 1,
    desc: '现金'
  },
  COMPANY: {
    value: 2,
    desc: '公司账户'
  },
  BUYER: {
    value: 3,
    desc: '挂账'
  }
}

export const STATUS_TY_ENUM = {
  PENDING: {
    value: 1,
    desc: '待审核'
  },
  AUDITED: {
    value: 2,
    desc: '已审核'
  },
  ABNORMAL: {
    value: 3,
    desc: '异常'
  }
}

export const PAY_TYPE_ENUM = {
  REFUND: {
    value: 1,
    desc: '退款'
  },
  SEPARATE: {
    value: 2,
    desc: '分账'
  }
}

export const PAYEE_TYPE_ENUM = {
  SALESMAN: {
    value: 1,
    desc: '业务员'
  },
  DRIVER: {
    value: 2,
    desc: '司机'
  }
}
// 访销单
export const EDIT_TYPE_ENUM = {
  REFUND: {
    value: 1,
    desc: '未修改'
  },
  SEPARATE: {
    value: 2,
    desc: '已修改'
  }
}

export default {
  STATUS_TYPE_ENUM,
  ORDER_STATUS_ENUM,
  SIGN_STATUS_ENUM,
  ISSELF_ORDER_ENUM,
  PICK_STATUS_ENUM,
  ORDER_STA_ENUM,
  TYPE_STATUS_ENUM,
  APPROVAL_STATUS_ENUM,
  STORE_STATUS_ENUM,
  SEX_STATUS_ENUM,
  JOD_STATUS_ENUM,
  PENDING_STATUS_ENUM,
  DELIVERY_STATUS_ENUM,
  PAY_STATUS_ENUM,
  STATUS_TY_ENUM,
  PAY_TYPE_ENUM,
  EDIT_TYPE_ENUM,
  PAY_STA_ENUM,
  PAYEE_TYPE_ENUM
}
